package com.bw.gmall.realtime.app.dws;

import com.bw.gmall.realtime.utils.MyKafkaUtil;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;

public class DemoTest {
    public static void main(String[] args) {

        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);


        StreamTableEnvironment tableEnv = StreamTableEnvironment.create(env);


        tableEnv.sqlQuery("select  FROM_UNIXTIME(1750987766000/1000)").printSchema();
        tableEnv.sqlQuery("select  TO_TIMESTAMP(FROM_UNIXTIME(1750987766000/1000))").printSchema();


    }
}
